<?php
	require(__DATAGEN_META_CONTROLS__ . '/ArticlebookMetaControlGen.class.php');

	/**
	 * This is a MetaControl customizable subclass, providing a QForm or QPanel access to event handlers
	 * and QControls to perform the Create, Edit, and Delete functionality of the
	 * Articlebook class.  This code-generated class extends from
	 * the generated MetaControl class, which contains all the basic elements to help a QPanel or QForm
	 * display an HTML form that can manipulate a single Articlebook object.
	 *
	 * To take advantage of some (or all) of these control objects, you
	 * must create a new QForm or QPanel which instantiates a ArticlebookMetaControl
	 * class.
	 *
	 * This file is intended to be modified.  Subsequent code regenerations will NOT modify
	 * or overwrite this file.
	 * 
	 * @package My Application
	 * @subpackage MetaControls
	 */
	class ArticlebookMetaControl extends ArticlebookMetaControlGen 
	{
		/**
		 * Create and setup QListBox lstReferenceIDObject
		 * @param string $strControlId optional ControlId to use
		 * @return QListBox
		 */
		public function lstReferenceIDObject_Create($strControlId = null) 
		{
			$this->lstReferenceIDObject = new QListBox($this->objParentObject, $strControlId);
			$this->lstReferenceIDObject->Name = QApplication::Translate('Reference I D Object');
			$this->lstReferenceIDObject->AddItem(QApplication::Translate('- Select One -'), null);
						
			$objReferenceIDObjectArray = Articlecore::LoadArrayByProductGroup('9');
			if ($objReferenceIDObjectArray) foreach ($objReferenceIDObjectArray as $objReferenceIDObject) {
				$objListItem = new QListItem($objReferenceIDObject->__toString(), $objReferenceIDObject->Id);
				if (($this->objArticlebook->ReferenceIDObject) && ($this->objArticlebook->ReferenceIDObject->Id == $objReferenceIDObject->Id))
					$objListItem->Selected = true;
				$this->lstReferenceIDObject->AddItem($objListItem);
			}
			return $this->lstReferenceIDObject;
		}
		
	}
?>